(function(angular) {
	"use strict";
	angular.module("fs.waf").controller("cls.glEntry.viewController", viewController);
	viewController.$inject = [ "$scope", "layoutConfig", "validatorConfig", "authService", "glEntryService" ];
	function viewController($scope, layoutConfig, validatorConfig, authService, glEntryService) {
		var ctrl = this, glEntryInfo = $scope.$stateParams.params;
		ctrl.validatorConfig = validatorConfig;
		
		ctrl.init = function() {
			authService.view(glEntryInfo).then(function(response) {
				ctrl.layoutConfig = layoutConfig;
				ctrl.glEntry = response.data || glEntryInfo;
			}, angular.noop);
		};

	}
})(angular);